50 MacOs Terminal Tips and Tricks

find password of previously connected wifi

security find-generic-password -wa "coffee-shop-wifi"

keep mac awake

caffeinate

save screenshot to clipboard

cmd ctrl shift 4 

use finger print id for sudo password

sudo nano /etc/pam.d/sudo

# add
auth sufficient pam_tid.so

Credits